package cn.wusifx.zabbix.request.builder.proxy;

import cn.wusifx.zabbix.request.BaseRequest;
import cn.wusifx.zabbix.request.builder.CreateRequestBuilder;

import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/proxy/create
 */
public class ProxyCreateRequestBuilder extends CreateRequestBuilder {
    private String host;
    private String status;
    public ProxyCreateRequestBuilder(String auth) {
        super("proxy.create", auth);
    }

    public ProxyCreateRequestBuilder(Long id, String auth) {
        super("proxy.create", id, auth);
    }

    public String getHost() {
        return host;
    }

    public ProxyCreateRequestBuilder setHost(String host) {
        this.host = host;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public ProxyCreateRequestBuilder setStatus(String status) {
        this.status = status;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("host",host);
        baseRequest.getParams().put("status",status);
        return baseRequest;
    }
}
